<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content=""/>
    <meta name="author" charset="">
    <title th:text="#{login.title}">Please sign in</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet"
    crossorigin="anonymous"
    >
    <style>
        body {
            padding-top: 40px;
            padding-bottom: 40px;
            background-color: #eee;
        }

        .form-signin {
            max-width: 330px;
            padding: 15px;
            margin: 0 auto;
        }
        .form-signin .form-signin-heading,
        .form-signin .checkbox {
            margin-bottom: 10px;
        }
        .form-signin .checkbox {
            font-weight: 400;
        }
        .form-signin .form-control {
            position: relative;
            box-sizing: border-box;
            height: auto;
            padding: 10px;
            font-size: 16px;
        }
        .form-signin .form-control:focus {
            z-index: 2;
        }
        .form-signin input[type="email"] {
            margin-bottom: -1px;
            border-bottom-right-radius: 0;
            border-bottom-left-radius: 0;
        }
        .form-signin input[type="password"] {
            margin-bottom: 10px;
            border-top-left-radius: 0;
            border-top-right-radius: 0;
        }
    </style>
</head>
<body>
<div class="container">
    <div th:if="${param.error}" class="alert alert-error" th:text="#{login.invalid}">
        Invalid username and password.
    </div>
    <div th:if="${param.logout}" class="alert alert-success" th:text="#{login.logout}">
        You have been logged out.
    </div>
    <form class="form-signin" method="post" th:action="@{/login}">
        <h2 class="form-signin-heading" th:text="#{login.title}">Please sign in</h2>
      <p>
          <label for="username" class="sr-only" th:text="#{login.username}">Username</label>
          <input type="text" id="username" th:placeholder="#{login.username}" class="form-control" name="username" required autofocu/>
      </p>
       <p>
           <label for="password" class="sr-only" th:text="#{login.password}">Password</label>
           <input type="password" id="password" class="form-control" th:placeholder="#{login.password}" older="Password" name="password"  required/>
       </p>
        <div class="form-actions">
            <button class="btn btn-lg btn-primary btn-block" type="submit" th:text="#{login.submit}">Sign in</button>
        </div>
    </form>

</div>

</body>
</html>
